package com.mdb.open.trade.feign;

import com.mdb.bc.api.data.ResultEx;
import com.mdb.open.trade.feign.vo.UserVo;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 调用角色与权限相关资口
 */
@FeignClient(value = "cnt-auth-service")
public interface UserServiceClient {

	@ApiOperation(value = "根据用户ID获取用户信息")
	@GetMapping("/user/user_info_cus/{customerCode}")
	ResultEx<UserVo> queryUserInfoByCustomerCode(@ApiParam("customerCode") @PathVariable("customerCode") String customerCode);
}
